libxenlight: fix compilation error for ia64
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 23 Nov 2009 07:06:39 +0000 (07:06 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 23 Nov 2009 07:06:39 +0000 (07:06 +0000)
xc_cpuid_apply_policy() and HVM_PARAM_VIRIDIAN are defined on x86
only.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
tools/libxl/libxl_dom.c
tools/libxl/xenguest.c

index 3940ee12da62ea150ddf3a4a3dd778ed01948733..8d107ecfe39767bf9d62e496ef6443f6e17c6fe9 100644 (file)
@@ -148,7 +148,9 @@ int build_hvm(struct libxl_ctx *ctx, uint32_t domid,
         XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, ret, "hvm build set params failed");
         return ERROR_FAIL;
     }
+#if defined(__i386__) || defined(__x86_64__)
     xc_cpuid_apply_policy(ctx->xch, domid);
+#endif
     return 0;
 }
 
index dc2a4e856a67637261c02d3a28d7f107644da535..b30744d885759614cead40b8ce3062233159f60e 100644 (file)
@@ -43,7 +43,9 @@ int hvm_build_set_params(int handle, uint32_t domid,
 
     xc_get_hvm_param(handle, domid, HVM_PARAM_STORE_PFN, store_mfn);
     xc_set_hvm_param(handle, domid, HVM_PARAM_PAE_ENABLED, pae);
+#if defined(__i386__) || defined(__x86_64__)
     xc_set_hvm_param(handle, domid, HVM_PARAM_VIRIDIAN, viridian);
+#endif
     xc_set_hvm_param(handle, domid, HVM_PARAM_STORE_EVTCHN, store_evtchn);
     return 0;
 }